package com.api.shopapi.service;

import com.api.shopapi.entity.TrainClass;
import com.api.shopapi.entity.dto.ArticleClassDTO;
import com.api.shopapi.entity.dto.TrainClassDTO;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface TrainClassService {


    int insert(TrainClass trainClass);

    int update(TrainClass trainClass);

    TrainClass getByTrainClassCode(String trainClassCode);

    List<TrainClass> getListByParentTrainClassCode(String parentTrainClassCode);

    List<TrainClassDTO> getFirstClassList( String governmentCode);


    List<TrainClassDTO> getListByGovernmentCode(String governmentCode);

    PageInfo<TrainClassDTO> getPage(int pageIndex, int pageSize, String name, String governmentCode);



}
